﻿@inject IStringLocalizer<BootstrapBlazor.Shared.Samples.PopoverConfirms> Localizer

<PopConfirmButton Placement="Placement.Top"
                  Color="Color.Danger"
                  ConfirmIcon="fa-solid fa-triangle-exclamation text-danger"
                  ConfirmButtonColor="Color.Danger"
                  Text="@Localizer["PopoverConfirmsIsAsyncConfirmationText"]"
                  Content="@Localizer["PopoverConfirmsIsAsyncConfirmationContent"]"
                  Icon="fa-solid fa-font-awesome fa-fw"
                  IsAsync="true"
                  OnConfirm="OnAsyncConfirm" />

@code {
    private static Task OnAsyncConfirm() => Task.Delay(3000);
}
